Ext.namespace("Project.Main");//PactManagement.js

Project.Main = function(){
	
	var flag="";
		 //访问action
	 var conn = new Ext.data.Connection({
	    url:'../security/checkMenu.form?timesnap=' + Date.parse(new Date()),
	    method:'post'
	 })
	 var param={menuName:"htgl"};
	 Utils.request(conn,{
	    params:param,
	    scope:this,
	    success:function(data){
	     if(data.access=="true"){
	      flag="true"
	      		 //原始代码开始
	      		 var mainPanel = new Ext.TabPanel( {
					activeTab : 0,
					width : 950,
					border : false,
					layoutOnTabChange:true,
					renderTo : 'main',
					closable:true,
					autoScroll:true,
					items : [ {
						title : '权限设置',
						autoHeight : true,
						items : [ new Promission().createPromission ]
					}]
					});
				//原始代码结束
	     }else{
	      flag="false"
	      alert("没有权限");
	      return;
	     }
	    }
	});
};	
	
	
	
	
	
	
	
	
	

	Ext.onReady(function(){
		 Ext.QuickTips.init();
		 Ext.form.Field.prototype.msgTarget = 'side';
		 Ext.BLANK_IMAGE_URL = '../resources/images/default/s.gif';
		 new Project.Main();
	});